package cn.edu.zafu.bigdata.x.yaojy;

public class Circle extends Shape{

    private double radius;

    public Circle(double radius){
        this.radius = radius;
    }

    public double area(){
        return Math.PI * radius * radius;
    };

    public  double perimeter(){
        return 2 * Math.PI * radius;
    }

}
